package website.haicheng.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import website.haicheng.core.base.BaseEntity;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统信息监控表
 * </p>
 *
 * @author 582895699@qq.com
 * @since 2021-02-09
 */
@Getter
@Setter
@ApiModel(value = "SystemMonitor对象", description = "系统信息监控表")
public class SystemMonitor extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "CPU 核心数")
    private Integer cpuCoreCount;

    @ApiModelProperty(value = "cpu系统使用率")
    private String cpuSysUsage;

    @ApiModelProperty(value = "cpu用户使用率")
    private String cpuUserUsage;

    @ApiModelProperty(value = "cpu当前等待率")
    private String cpuWaitUsage;

    @ApiModelProperty(value = "cpu当前使用率")
    private String cpuUsage;

    @ApiModelProperty(value = "总内存")
    private Long memoryTotal;

    @ApiModelProperty(value = "内存使用量")
    private Long memoryUsed;

    @ApiModelProperty(value = "剩余内存")
    private Long memoryAvailable;

    @ApiModelProperty(value = "内存使用率")
    private String memoryUsage;

    @ApiModelProperty(value = "jvm内存总量")
    private Long jvmMemoryTotal;

    @ApiModelProperty(value = "jvm已使用内存")
    private Long jvmMemoryUsed;

    @ApiModelProperty(value = "jvm剩余内存")
    private Long jvmMemoryAvaliable;

    @ApiModelProperty(value = "jvm内存使用率")
    private String jvmMemoryUsage;

    @ApiModelProperty(value = "java版本")
    private String javaVersion;

    @ApiModelProperty(value = "操作系统名")
    private String osName;

    @ApiModelProperty(value = "系统架构")
    private String osArch;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
